package com.ffs.game.scene.obj.ai;

import java.util.HashMap;
import java.util.Map;

/**
 * 怪物ai工厂
 *
 * @author ffs80
 */
public class MonsterAIFactory {

    private static final Map<Integer, IMonsterAI> aiMap = new HashMap<>();

    static {
        aiMap.put(ConstAI.AiType.patrol, new PatrolAI());
    }

    public static IMonsterAI findAI(int type) {
        return aiMap.get(type);
    }
}
